package net.lcheng.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class RegisterEntity implements Serializable {
	//    @Length(min = 5, max = 20)
//    @Pattern(regexp = "[a-zA-Z]{5,20}", message = "{user.name.illegal}")
	@Pattern(regexp = "^[1][345678][0-9]{9}$" ,message = "手机号码格式不正确")
	private String userPhone;

	@Pattern(regexp = "[a-zA-Z0-9]{6,20}", message = "密码格式不正确")
	private String userPwd;


	@Pattern(regexp = "[a-zA-Z0-9]{6,20}", message = "密码格式不正确")
	private String rePassword;


	//	@Pattern(regexp = "/^\\d{4}$/", message = "验证码格式不正确")
	@NotEmpty(message = "验证码不能为空")
	private String number;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getRePassword() {
		return rePassword;
	}

	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
}
